<?php
	require_once(PACKAGE_PATH.'classes/Author.php');
	require_once(PACKAGE_PATH.'classes/School.php');
	require_once(PACKAGE_PATH.'classes/ReportableWrapper.php');
	require_once(PACKAGE_PATH.'classes/XMLReporter.php');
	$schoolId = isset($_REQUEST['schoolId'])?$_REQUEST['schoolId']:"0";
	$school = School::findById($schoolId);
	$years = new reportableWrapper(Author::findYearsBySchool($school), 'years');
	$xml = new XMLReporter();
	echo($years->report($xml));
?>